<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>information</title>
<style>
#header {
	background-color:black;
	color:white;
	text-align:center;
    padding:20px;}
#navf {
	background-color:#eeeeee;
	height:300px;
	width:380px;
	float:left;
	text-align:center;
	padding:5px;
}

#sectionleft {
	float:left;
	height:300px;
	width:120px;
	text-align:right;
	padding:5px;
}
#sectionright {
	float:left;
	height:300px;
	width:360px;
	text-align:center;
}
#navs {
	background-color:#eeeeee;
	height:300px;
	width:380px;
	float:right;
	text-align:center;
	padding:5px;
}
#foot {
	background-color:black;
	color:white;
	text-align:center;
    padding:20px;
	clear:both;
}
</style>  
</head>
<body>
<div id="header">
<h1 style="text-align:center">个人信息</h1></div>
<div id="navf"></div>
<div id="sectionleft">
    <br><p>用户名：<br>密码：<br>手机号：<br>年龄：<br>你的头像：</p>
</div>
<div  id="sectionright">
<?php
header('Content-type:text/html;charset=UTF-8');
include_once("../class/mysqlclass.php");
session_start();
$name = $_SESSION['usn'];
$psw = $_SESSION['psw'];
echo '<br><br>'.$name.'<br>';
echo $psw.'<br>';
$mysqli = new test;
$mysqli = $mysqli -> Con();
$sqlstr = "select * from user where username= '{$name}'"; 
$query = $mysqli->query($sqlstr);    
foreach ($query as $var){
	echo $var['telephone'].'<br>';
    echo $var['age'].'<br>';
    echo '<br>';   
	}
$pht = new my();
echo $pht->ShowPhoto($name);?>
</div>
<div id="navs"></div>
<div id="foot">
    <h2>
	<a href="./infoupdate.php">编辑信息</a>
	<a href="./home.php">返回首页</a>
</div>
</h2>
</body>
</html>